package com.glory.wxelectricitypda.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.wxelectricitypda.R;
import com.glory.wxelectricitypda.bean.PackBean;

import java.util.List;


public class LotCheckListAdapter extends BaseQuickAdapter<PackBean, BaseViewHolder> {

    public LotCheckListAdapter(@Nullable List<PackBean> data) {
        super(R.layout.adapter_lot_check, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, final PackBean item) {
        helper.setText(R.id.tvFengZhuang, item.getATTRIBUTE1());
        helper.setText(R.id.tvKuoSan, item.getSUBSTRATEID1());
        helper.setText(R.id.tvLotId, item.getLOTID());
        helper.setText(R.id.tvNo, String.valueOf(getData().size() - helper.getAdapterPosition()));
    }
}
